<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="example1"></div>
<style>
    .pdfobject-container { height: 70rem; border: 1rem solid rgba(0,0,0,.1); }
</style>
</body>
<script src="../static/layui/js/jquery.min.js"></script>
<script src="../static/layui/js/jquery.media.js"></script>
<script src="../static/layui/js/pdfobject.js"></script>
<script>
    function parseUrl(url){
        if(url.indexOf("?") == -1) {
            return {};
        }
        var query = url.split("?")[1];
        var queryArr = query.split("&");
        var obj = {};
        queryArr.forEach(function(item){
            var key = item.split("=")[0];
            var value = item.split("=")[1];
            obj[key] = decodeURIComponent(value);
        });
        return obj;
    }
    // url传递的信息
    var urlMsg = parseUrl(window.location.search);
    console.info(urlMsg.pFilepath);
    PDFObject.embed(urlMsg.pFilepath, "#example1");
</script>
</html>